package itsm.isperp.framework.web.utils;

import itsm.isperp.framework.core.context.ContextHolder;
import itsm.isperp.framework.web.domain.CountQuery;

import java.util.List;
import java.util.Map;

import org.springframework.jdbc.core.JdbcTemplate;

/**
 * 
 * 
 * 
 * @author lizx
 * @date 2013-8-13
 * 
 */
public final class CountQueryUtils {

	public static String analyzeFilter(String sql, String filter) {

		return null;

	}

	public static String generalQueryMenu(CountQuery cq) {

		String sql = cq.generatorCountQuerySql();
		JdbcTemplate mapper = ContextHolder.getSpringBean(JdbcTemplate.class);
		List<Map<String, Object>> result = mapper.queryForList(sql);
		System.out.println(sql);
		return null;

	}
}
